projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d91f490
)
(unexec): Copy previous change in unexelf.c.
author
Richard M. Stallman
<rms@gnu.org>
Wed, 24 Aug 1994 23:42:49 +0000
(23:42 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 24 Aug 1994 23:42:49 +0000
(23:42 +0000)
src/unexsgi.c
patch
|
blob
|
history
diff --git
a/src/unexsgi.c
b/src/unexsgi.c
index 8a453ba581c794bab79e1bcd76a0135f0c9e80ad..b375ee5a8a11bb72df6716f55bdefd748479d61b 100644
(file)
--- a/
src/unexsgi.c
+++ b/
src/unexsgi.c
@@
-738,7
+738,11
@@
unexec (new_name, old_name, data_start, bss_start, entry_address)
a new section in between. */
PATCH_INDEX (NEW_SECTION_H (nn).sh_link);
- PATCH_INDEX (NEW_SECTION_H (nn).sh_info);
+ /* For symbol tables, info is a symbol table index,
+ so don't change it. */
+ if (NEW_SECTION_H (nn).sh_type != SHT_SYMTAB
+ && NEW_SECTION_H (nn).sh_type != SHT_DYNSYM)
+ PATCH_INDEX (NEW_SECTION_H (nn).sh_info);
/* Now, start to copy the content of sections. */
if (NEW_SECTION_H (nn).sh_type == SHT_NULL